import React, { useState } from 'react'

const CommentFilter = ({setActiveType}) => {
    const handleClickGood=()=>{
        setActiveType("Good")
    }
    const handleClickNeutra=()=>{
        setActiveType("Neutra")
    }
    const handleClickBad=()=>{
        setActiveType("Bad")
    }
    return (
        <div>
            <button>全部</button>
            <button onClick={()=>setActiveType("Good")}>好评</button>
            <button>onClick={()=>setActiveType("Neutral")}中评</button>
            <button>onClick={()=>setActiveType("Bad")}差评</button>
        </div>
    )
}
export default CommentFilter
